aux_source_directory(${CMAKE_CURRENT_LIST_DIR}/socket_ipc socket_ipc_list)

include_directories(
  .
  socket_ipc/
)

add_executable(modbus_server
    modbus_sever.c
  ${socket_ipc_list}
)
target_link_libraries(modbus_server
  pthread
)

add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/socket_ipc)